package online.sanen.mhdt.entity.equip;

import online.sanen.mhdt.RandomeTool;
import online.sanen.mhdt.entity.attr.DEF;
import online.sanen.mhdt.entity.attr.SP;

/**
 * 鞋子
 */
public abstract class Shoe extends Equip{
    protected SP sp;
    protected DEF def;
    /**
     * 装备属性取值范围
     */
    protected int minSp;
    protected int maxSp;
    protected int minDef;
    protected int maxDef;
    protected void initBaseAttr() {
        sp = new SP(RandomeTool.equipBaseAttr(minSp, maxSp));
        def = new DEF(RandomeTool.equipBaseAttr(minDef, maxDef));
    }

    public SP getSp() {
        return sp;
    }

    public void setSp(SP sp) {
        this.sp = sp;
    }

    public DEF getDef() {
        return def;
    }

    public void setDef(DEF def) {
        this.def = def;
    }

    public int getMinSp() {
        return minSp;
    }

    public void setMinSp(int minSp) {
        this.minSp = minSp;
    }

    public int getMaxSp() {
        return maxSp;
    }

    public void setMaxSp(int maxSp) {
        this.maxSp = maxSp;
    }

    public int getMinDef() {
        return minDef;
    }

    public void setMinDef(int minDef) {
        this.minDef = minDef;
    }

    public int getMaxDef() {
        return maxDef;
    }

    public void setMaxDef(int maxDef) {
        this.maxDef = maxDef;
    }
}
